package com.zxy.consumer;

import com.zxy.example.common.model.User;
import com.zxy.example.common.service.UserService;
import com.zxy.zxyrpc.springboot.starter.annotation.RpcReference;
import org.springframework.stereotype.Service;

/**
 * @author zxy
 * @since 2025/5/30
 **/
@Service
public class ExampleServerImpl {
    @RpcReference(serviceVersion = "", loadBalancer = "", retryStrategy = "", tolerantStrategy = "")
    private UserService userService;

    public void test() {
        User user = new User();
        user.setName("zxy-yyds");
        User resultUser = userService.getUser(user);
        System.out.println(resultUser.getName());
    }
}
